package com.chenfeng.blog.responsitory;

import com.chenfeng.blog.domian.User;

import java.util.List;

/**
 * Created by wrcsh on 2018/8/2.
 */
public interface UserRespository {
    /**
     * 更新或者删除
     * @param user
     * @return
     */
    User saveOrupdateUser(User user);
    void deleteUser(Long user);
    User getUserById(Long id);
    List<User> getListUser();

}
